Skip to content

nix: add cmake-xpu-parallel-hook to cap XPU build parallelism#523

Open
YangKai0616 wants to merge 1 commit intohuggingface:mainfrom
YangKai0616:max-jobs
Open

nix: add cmake-xpu-parallel-hook to cap XPU build parallelism#523
YangKai0616 wants to merge 1 commit intohuggingface:mainfrom
YangKai0616:max-jobs

Conversation

@YangKai0616
Copy link
Copy Markdown
Contributor

Per the title. Background PR huggingface/kernels-community#666 .

@YangKai0616 YangKai0616 marked this pull request as draft May 6, 2026 06:55
@YangKai0616 YangKai0616 marked this pull request as ready for review May 6, 2026 08:01
nvccThreads,

# TODO: Maximum parallel XPU compilation jobs. (for FA2)
xpuParallelJobs ? 12,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The number of Nix build cores is already limited to 12:

https://github.com/huggingface/kernels-community/blob/dc0e5d104b149f45a727db43023dcf22f51c428d/.github/workflows/build-release.yaml#L41

I'll try to build huggingface/kernels-community#666 with the latest changes and see what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants